﻿using System;
using System.Collections.Generic;
namespace CodeAuto.Models
{
    /// <summary>
    /// 字段表
    /// </summary>
    public class T_Field
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 字段
        /// </summary>
        public string Field { get; set; }
        /// <summary>
        /// 字段属性
        /// </summary>
        public string Attr { get; set; }
        /// <summary>
        /// 所属表
        /// </summary>
        public int TableId { get; set; }

        /// <summary>
        /// 输入控件类型
        /// </summary>
        public int InputType { get; set; }


        public virtual T_Table Table { get; set; }

        public T_Field()
        {
            this.Id = int.MinValue;
            this.TableId = int.MinValue;
        }
    }
}
